<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="p" %>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validators/company.js"></script>

 <div class="f_l margin1" style="width:100%">
    <div style="height:24px;color:red" align="center" id="errorInfo">${failInfo }</div>
 	<div style="height:24px;color:red;font-weight:bold" align="left">公司资料修改</div>
    <s:form id="submitForm" action="company!update" method="post" theme="simple">
    <table width="100%">
    	<tr>
    		<td width="12%"><s:text name="名称"/>：</td>
    		<td width="5%"><input type="text" name="company.name" value="${company.name}"></td>
    		<td width="15%"><s:text name="电子邮箱"/>：</td>
    		<td><input type="text" name="company.email" value="${company.email}"> </td>
    	</tr>
    	<tr>
    		<td><s:text name="电话"/>：</td>
    		<td><input type="text" name="company.telephone" value="${company.telephone}"></td>
    		<td><s:text name="传真"/>：</td>
    		<td><input type="text" name="company.fax" value="${company.fax}"></td>
    	</tr>
    	<tr>
    		<td colspan="4">
	    	    <s:text name="国家"/>：<input type="text" name="company.country" value="${company.country}">
	            <s:text name="省"/>：<input type="text" name="company.province" value="${company.province}">
	            <s:text name="市"/>：<input type="text" name="company.city" value="${company.city}">
    		</td>
    	</tr>
    	<tr>
    		<td colspan="4">
    		     <s:text name="地址"/>：<input type="text" name="company.address" value="${company.address}" style="width: 450px;">
    		</td>
    	</tr>
    	<tr>
    		<td colspan="1"><input type="submit" value="确认" onclick="return doValidate(event);" /></td>
    		<td colspan="3" align="left"><input type="button" value="取消" onclick="window.location.href='company!list'"/></td>
    	</tr>
    </table>
        <input type="hidden" id="company.id" name="company.id" value="${company.id}">
    </s:form>
  </div>
